package com.cong.modules.news.model;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 新闻文章表
 */
@TableName("news_article")
public class NewsArticle implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 文章id
	 */
	@TableId("newsArticleId")
	private Long newsArticleId;

	/**
	 * 标题名称
	 */
	@TableField("title")
	private String title;

	/**
	 * 封面图片
	 */
	@TableField("bannerPic")
	private String bannerPic;

	/**
	 * 新闻分类Id
	 */
	@TableField("newsCategoryId")
	private Long newsCategoryId;

	/**
	 * 文章摘要
	 */
	@TableField("brief")
	private String brief;

	/**
	 * 文章详情富文本
	 */
	@TableField("content")
	private String content;

	/**
	 * 文章显示状态 0隐藏 1显示
	 */
	@TableField("status")
	private Integer status;

	/**
	 * 文章浏览量
	 */
	@TableField("viewsNum")
	private Integer viewsNum;

	/**
	 * 是否置顶 0不置顶 1置顶
	 */
	@TableField("setTop")
	private Integer setTop;

	/**
	 * 发布人Id
	 */
	@TableField("userId")
	private Integer userId;

	/**
	 * 创建时间
	 */
	@TableField("createTime")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
	private Date createTime;

	/**
	 * 更新时间
	 */
	@TableField("updateTime")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
	private Date updateTime;

	public Long getNewsArticleId() {
		return newsArticleId;
	}

	public void setNewsArticleId(Long newsArticleId) {
		this.newsArticleId = newsArticleId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getBannerPic() {
		return bannerPic;
	}

	public void setBannerPic(String bannerPic) {
		this.bannerPic = bannerPic;
	}

	public Long getNewsCategoryId() {
		return newsCategoryId;
	}

	public void setNewsCategoryId(Long newsCategoryId) {
		this.newsCategoryId = newsCategoryId;
	}

	public String getBrief() {
		return brief;
	}

	public void setBrief(String brief) {
		this.brief = brief;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getViewsNum() {
		return viewsNum;
	}

	public void setViewsNum(Integer viewsNum) {
		this.viewsNum = viewsNum;
	}

	public Integer getSetTop() {
		return setTop;
	}

	public void setSetTop(Integer setTop) {
		this.setTop = setTop;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
